package com.smile.frame.workflow.flowable.demo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author LGC
 */
@Schema(description = "创建流程模型请求")
@Data
public class BpmModelCreateReqDTO {

    @Schema(description = "流程key", example = "leave")
    @NotEmpty(message = "流程标识不能为空")
    private String key;

    @Schema(description = "流程名称", example = "请假审批流程")
    @NotEmpty(message = "流程名称不能为空")
    private String name;

    @Schema(description = "流程分类", example = "1")
    @NotEmpty(message = "流程分类不能为空")
    private String category;

    @Schema(description = "流程描述", example = "流程描述")
    private String description;


}
